package com.training.admin.service;

import java.util.List;

import com.training.admin.dto.CourseRequest;
import com.training.admin.entity.course.Course;

/**
 * 
 * @author sjh
 *
 */
public interface CourseService extends DataService<Course>{
	
	
	/**
	 * 
	 * @param courseRequest
	 */
	public void create(CourseRequest courseRequest);
	
	/**
	 * 
	 * @param id
	 * @param course
	 */
	public void edit(Long id, Course course);
	
	/**
	 * 
	 * @param id
	 */
	public void delete(Long id);

	/**
	 * 讲师统计维度
	 * @param trainerId
	 * @return
	 */
	public List<Course> listByTrainer(Long trainerId);

}
